#include<bits/stdc++.h>
using namespace std;
int main(){
    int T=100;
    for(int i=1;i<=T;i++){
        system("dataGenerator.exe");
        system("mode.exe");
        system("modeBF.exe");
        int error=system("fc mode.out modeBF.out");
        if(error){cout<<"FAILED"<<endl;break;}
    }
    cout<<"SUCCEEDED"<<endl;
    return 0;
}